<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Control Language="vb" AutoEventWireup="false" Inherits="DotNetNuke.Modules.SearchInput.SearchInput" CodeFile="SearchInput.ascx.vb" %>
<asp:textbox id="txtSearch" runat="server" Wrap="False" maxlength="200" cssclass="search" Text="Search the Site"/>
<asp:imagebutton id="imgGo" runat="server"/>
<asp:Button id="cmdGo" runat="server" cssclass="go"/>
<script>
	$("input[id$=SearchInput_txtSearch]").focus(function(e) {
		if ($(this).val() == 'Search the Site') {
			$(this).val('');
		}
	});
	$("input[id$=SearchInput_txtSearch]").keydown(function(e) {
		if(e.which == '13' || e.keyCode == '13') {			
			var id = $("input.go").first().attr('id');
			$("#" + id).click();
			return false;
		}
	});
</script>


